package com.ysw.rpc.client.config;

import com.ysw.rpc.client.enums.ConnectionEnum;
import com.ysw.rpc.common.config.RpcConfig;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.HashSet;
import java.util.Set;

/**
 * @author YinShangwen
 * @since 2023/4/10 9:27
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ClientProperties extends RpcConfig {
    /**
     * 直连用的地址
     */
    private String host = "localhost";
    /**
     * 订阅的服务列表
     */
    private Set<String> subscribes = new HashSet<>();
    /**
     * 连接类型
     *
     * @see ConnectionEnum
     */
    private String connectionType = "single-long";
}
